/**  
* @Title: MtonsLinkVO.java
* @Package cn.net.mtons.weixin.rcv.vo
* @Description: TODO
* @author ma jinjian  
* @date 2016年2月8日 下午4:36:26
* @version V1.0  
*/ 
package cn.net.mtons.weixin.rcv.vo;

import cn.net.mtons.weixin.MtonsBasicVO;
import cn.net.mtons.weixin.utils.MtonsMessageUtil;

/**
 * @ClassName: MtonsLinkVO
 * @Description: TODO
 * @author ma jinjian
 * @date 2016年2月8日 下午4:36:26
 *
 */
public class MtonsLinkVO extends MtonsBasicVO {

	private String msgType;
	
	private String title;
	
	private String description;
	
	private String url;
	
	private String msgId;

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	@Override
	public String toXml() {
		MtonsMessageUtil util = new MtonsMessageUtil(super.toXml());
		util.addData("MsgType", "link");
		util.addData("Title", this.getTitle());
		util.addData("Description", this.getDescription());
		util.addData("Url", this.getUrl());
		util.addData("MsgId", this.getMsgId());
		util.surroundWith("xml");
		return util.toString();
	}
}
